﻿using AutoMapper;
using HamcoWcs.Entitys.Devices;
using HamcoWcs.Entitys.PconInfos;
using HamcoWcs.Models.DeviceMsgs;
using HamcoWcs.Models.DeviceMsgs.SrmMsgs;

namespace HamcoWcs.Models.Devices
{
    public class DeviceProfile : Profile
    {
        public DeviceProfile()
        {
            CreateMap<PconDto, PconInfo>();
            CreateMap<PconInfo, PconDto>();

            CreateMap<SrmInfo, SrmDto>();

            CreateMap<PconDto, PconRecvMsg>();
            CreateMap<SrmPlc, SrmRecvMsg>();

            CreateMap<Raster, RasterDto>();
            CreateMap<RasterDto, UIRaster>();

            CreateMap<MachineStateMode, MachineState>();
            CreateMap<MachineState, MachineStateMode>();
        }
    }
}
